﻿using System;
using System.Threading;
using System.Threading.Tasks;

namespace WholeSlideImageLibrary
{
    public abstract class FileSourceReader : IAsyncDisposable
    {
        public abstract ValueTask<int> ReadAsync(long offset, Memory<byte> buffer, CancellationToken cancellationToken);

        public virtual ValueTask DisposeAsync() => default;
    }
}
